package lab02.test35;

/**
 * 按他每月工作的天数计算工资
 * Created by AIR on 2017/11/13.
 */
public class Worker extends Employee{
    int days;
    double dailySalary;
    public Worker(String name,int days,double dailySalary) {
        super(name);
        this.days=days;
        this.dailySalary=dailySalary;
    }

    @Override
    double computeSalary() {
        return days*dailySalary;
    }
}
